home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 5.4 KB | 231 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: WinMod.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODWindowModule_xh
- #define SOM_ODWindowModule_xh
-
- class ODWindowModule;
-
- #define ODWindowModule_MajorVersion 1
- #define ODWindowModule_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODRefCntObject_xh
- #include <RefCtObj.xh>
- #endif
-
- #ifndef ODWindowModule_API
- #define ODWindowModule_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODFrame;
- class ODFacet;
- class SOMClass;
- class SOMObject;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODWindowModule;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODWindowModuleCClassData ODWindowModuleClassData
- #define ODWindowModuleNewClass(major,minor) somNewVersionedClassReference(ODWindowModule,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODWindowModuleMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODWindowModule class object, and the methods it introduces. */
- SOMEXTERN struct ODWindowModuleClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken InitWindowModule;
- somMToken ShowWindow;
- somMToken HideWindow;
- somMToken SelectWindow;
- somMToken DeactivateFrontWindows;
- somMToken ActivateFrontWindows;
- } SOMDLINK ODWindowModuleClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODWindowModule_Class_Source) && !defined(SOM_Module_winmod_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODWindowModuleClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODWindowModule Method Procedures
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODWindowModule_InitWindowModule)(ODWindowModule *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_ODWindowModule_ShowWindow)(ODWindowModule *somSelf, Environment *ev,
- ODPlatformWindow window,
- ODWindowLayer layer);
- typedef void (* SOMLINK somTD_ODWindowModule_HideWindow)(ODWindowModule *somSelf, Environment *ev,
- ODPlatformWindow window);
- typedef void (* SOMLINK somTD_ODWindowModule_SelectWindow)(ODWindowModule *somSelf, Environment *ev,
- ODPlatformWindow window);
- typedef void (* SOMLINK somTD_ODWindowModule_DeactivateFrontWindows)(ODWindowModule *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_ODWindowModule_ActivateFrontWindows)(ODWindowModule *somSelf, Environment *ev);
- }
-
- #endif /* ODWindowModule_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODWindowModule
- */
- class ODWindowModule : public ODRefCntObject
- {
- public:
-
- // ODWindowModule::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODWindowModule, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODWindowModule);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODWindowModule);
- #endif
- }
-
- // ODWindowModule::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: InitWindowModule */
- void InitWindowModule(Environment *ev)
- {
- SOM_ResolveD(this,ODWindowModule,ODWindowModule,InitWindowModule)
- (this,ev);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: ShowWindow */
- void ShowWindow(Environment *ev,
- ODPlatformWindow window,
- ODWindowLayer layer)
- {
- SOM_ResolveD(this,ODWindowModule,ODWindowModule,ShowWindow)
- (this,ev,window,layer);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: HideWindow */
- void HideWindow(Environment *ev,
- ODPlatformWindow window)
- {
- SOM_ResolveD(this,ODWindowModule,ODWindowModule,HideWindow)
- (this,ev,window);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: SelectWindow */
- void SelectWindow(Environment *ev,
- ODPlatformWindow window)
- {
- SOM_ResolveD(this,ODWindowModule,ODWindowModule,SelectWindow)
- (this,ev,window);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: DeactivateFrontWindows */
- void DeactivateFrontWindows(Environment *ev)
- {
- SOM_ResolveD(this,ODWindowModule,ODWindowModule,DeactivateFrontWindows)
- (this,ev);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- /* method: ActivateFrontWindows */
- void ActivateFrontWindows(Environment *ev)
- {
- SOM_ResolveD(this,ODWindowModule,ODWindowModule,ActivateFrontWindows)
- (this,ev);
- #ifdef SOMCHKEXCEPT
- SOMCHKEXCEPT;
- #endif
- }
-
- }; /* ODWindowModule */
-
-
-
- #endif /* SOM_ODWindowModule_xh */
-